package com.rt.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rt.system.mapper.RtAssemblyKnowledgeMapper;
import com.rt.system.domain.RtAssemblyKnowledge;
import com.rt.system.service.IRtAssemblyKnowledgeService;

/**
 * 策略知识点Service业务层处理
 * 
 * @author Yg
 * @date 2022-05-05
 */
@Service
public class RtAssemblyKnowledgeServiceImpl implements IRtAssemblyKnowledgeService 
{
    @Autowired
    private RtAssemblyKnowledgeMapper rtAssemblyKnowledgeMapper;

    /**
     * 查询策略知识点
     * 
     * @param id 策略知识点主键
     * @return 策略知识点
     */
    @Override
    public RtAssemblyKnowledge selectRtAssemblyKnowledgeById(Long id)
    {
        return rtAssemblyKnowledgeMapper.selectRtAssemblyKnowledgeById(id);
    }

    /**
     * 查询策略知识点列表
     * 
     * @param rtAssemblyKnowledge 策略知识点
     * @return 策略知识点
     */
    @Override
    public List<RtAssemblyKnowledge> selectRtAssemblyKnowledgeList(RtAssemblyKnowledge rtAssemblyKnowledge)
    {
        return rtAssemblyKnowledgeMapper.selectRtAssemblyKnowledgeList(rtAssemblyKnowledge);
    }

    /**
     * 新增策略知识点
     * 
     * @param rtAssemblyKnowledge 策略知识点
     * @return 结果
     */
    @Override
    public int insertRtAssemblyKnowledge(RtAssemblyKnowledge rtAssemblyKnowledge)
    {
        return rtAssemblyKnowledgeMapper.insertRtAssemblyKnowledge(rtAssemblyKnowledge);
    }

    /**
     * 修改策略知识点
     * 
     * @param rtAssemblyKnowledge 策略知识点
     * @return 结果
     */
    @Override
    public int updateRtAssemblyKnowledge(RtAssemblyKnowledge rtAssemblyKnowledge)
    {
        return rtAssemblyKnowledgeMapper.updateRtAssemblyKnowledge(rtAssemblyKnowledge);
    }

    /**
     * 批量删除策略知识点
     * 
     * @param ids 需要删除的策略知识点主键
     * @return 结果
     */
    @Override
    public int deleteRtAssemblyKnowledgeByIds(Long[] ids)
    {
        return rtAssemblyKnowledgeMapper.deleteRtAssemblyKnowledgeByIds(ids);
    }

    /**
     * 删除策略知识点信息
     * 
     * @param id 策略知识点主键
     * @return 结果
     */
    @Override
    public int deleteRtAssemblyKnowledgeById(Long id)
    {
        return rtAssemblyKnowledgeMapper.deleteRtAssemblyKnowledgeById(id);
    }
}
